#Requires AutoHotkey v2.0

;按F12暂停开启脚本，运行时默认开启
F12::Suspend

onoff := 0
; 6 ~ 9
keyNum := 5

; MsgBox "started"



F11::{
    global onoff
    global keyNum
    onoff := !onoff
    if(onoff)
        {
            ; 1秒
            SetTimer Tag111, 1000
            SetTimer Tag000, 1000*60*1
        }
        else
        {
            SetTimer Tag111, 0
            SetTimer Tag000, 0
        }
    return 
}



;无脑111
Tag111()
{
    ; MsgBox "send 1"
    send 1
}

Tag000()
{   
    global keyNum
    if (keyNum>10) {
        keyNum := 5
    }
    if (keyNum>5) {
        send keyNum
    }
   
    keyNum := keyNum + 1
    if (keyNum>5 and keyNum<10) {
        send keyNum
    }
    if (keyNum==10) {
        send 0
        keyNum := 5
    }
}


